Fix issue where null results end up as the string "null".