Fixes #5208: correct reporting of post modification hook if file is chec...

...ked only at creation