Fixes issue with NULL handling when executing a common query (not a prepared statement one) when some of the fields are NULL - fixes #39