Fix for NaNs appearing in integration for ticket #201
Authored by: hpcoder 2014-09-23
Parent: [r1454]
Child: [r1456]