Issue #2562463 by jeroen.b, Sebastien @Actualys, thomjjames, lorenzs: Parent entity access check throws PHP notice because $nid nor $vid are set