facts(): Pass along query if only query.

When we fixed the behaviour of being able to query for all facts we
accidentally introduced a bug that if nothing was passed except query
query was emptied out causing us to always query for all facts.