Fix crash on type conversion error

Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Fix for another float conversion error
Merge pull request #2 from bryceharrington/fix-crash-in-type-conversion

Fix crash on type conversion error