WCM-2 Fix bug with not existing query rules