Add pre-update resource listener

Fixed error when added an empty product image entity
ok , I am sorry that I really don't know FQDN =.=