Fix for CompareStoredQueries with null values

- [x] Acceptance test
- [ ] Fix implementation

This intends to resolve #253.
(NOT READY YET)