pq_fetch_all should return 'false' if result set is empty

If pg_fetch_all reveices an empty result set, I get a segfault and I have no idea why. This path resolves the issue and makes pg_fetch_all more compatible with PHP. My first pull request, hope I did it right...