Handle NaN results from Presto server

This change depends on PR #34
Should we throw an exception in the `else` case?