EMI: Fix costume unloading

- use the costumeName instead of a pointer to the costume object to
  check, whether the current costume matches the requested one
- this fixes an uninitialized pointer read
Merge pull request #815 from chkr-private/costume-fixes

EMI: Fix costume unloading