making sure query isn't null on getRows

Fixing issue #15.