Fix #257. Make sure we're enforcing the validity of continuous queries on creation.