Fix: do not image attributes when trashing an empty image
Merge pull request #939 from joaoinacio/trash_image

Fix EZP-22433: check for empty image when trashing ezimage attribute