Add pre-update resource listener

Fixed error when added an empty product image entity