Fixed build_nested_query to handle empty arrays and hashes
Merge pull request #698 from IvanUkhov/build-query-empty-arrays

Utils.build_nested_query to handle empty arrays and hashes