Fix an issue where, if a table didn't exist yet, trying to declare 'has_objectid_primary_key' would fail.