fixes #918 [Uploadable] Behaviour throws and exception when removing the entity and its file