Fixed exception thrown when controller.curAppID is not of NSString class