bugfix: crash exited immediately with an exception if a query result
contained an object or array