Add pre-update resource listener

Fixed error when added an empty product image entity
I don't like this name.