Fix syntax error for check of 'CATALOG_WRITE_ENABLED' in layers/models.py