Fix: Exception when cancel is called

see: https://github.com/MattesGroeger/MGCommand/issues/23