Issue #2562463 by jeroen.b: Parent entity access check throws PHP notice because $nid nor $vid are set