Avoid querying non-existing tables because resource is not added to datastore