Handle appname undefined better
1.5.4