Fixed undefined variable $uri in EntityHelperTrait::accessEntity().