PCBC-302: Fixed issue with ViewQuery creation.