Fix issue with incorrect name used for morphing.

Now the app name can be changed without causing issues with null
pointers or manually set through the input field.