Gallery2: delete output file if mute or trim failed

Change-Id: I6925187b2e68f4041513cb26be4ad444cfed3720