Adding null check to query condition builder

If the condition's object is `null` then this raises a NPE. However, there may be cases where a condition does want to make comparisons to `null` as the subject of comparison so this is not a complete fix.

Fixes #37