[BUGFIX] Fix hook prohibiting record editing in the BE

Change-Id: If3734a8c6855740d729930f6b34265dee44a0325
Reviewed-on: https://review.typo3.org/24830
Reviewed-by: Stefan Rotsch
Tested-by: Stefan Rotsch