ElggFile->delete() can return false on success or null on failure

If you have a non saved ElggFile (eq user avatar / group icon) and call ElggFile->delete() the result will be false (as parent::delete() returns false)

This can be checked in the action /avatar/remove.

Also if something goes wrong on the ElggFilestore side the result will be null

here is the solution, tested and all still works fine