Convert actionscript NaN value to null when persisting

I have objects with properties of type Number. If these number properties aren’t initialized with a value, the object can’t be saved and Backendless returns the error: “java.sql.SQLException: ‘NaN’ is not a valid numeric or approximate numeric value”.

Since actionscript numbers can’t be null, I often use NaN as a null equivalent. It’d be nice if Backendless made this conversion (NaN to null) when persisting.