Handle NaN results from Presto server

This change depends on PR #34