Fixed problem when an error is returned when not needed.

This should fix issue #41 when an error is returned when cancelling the share sheet or the Extension itself.