(PDB-1017) Fix node tests hiding failures

There were several tests that were failing in v4 that were being hidden
by skipping over the assertions when the resulset was nil/empty. This
commit adds an explicit result count check and fixes the tests that were broken.
this error is presented in html:
curl -X GET http://localhost:8080/v4/nodes --data-urlencode 'query=[">",["fact","uptime_seconds"],true]'