UserStorage: getIdentity returns reference instead of eagerly finding entity
Extension: Fixed compatibility with PHP 5.3