check for _store_count instead of _registered_objects length
check on all connections (needed for multiple filestorage setup)
CSRF_DISABLED check moved