Ensure query APIs are loaded before validating

Closes #104.