You're right, it will return undefined in this case. I'll also fix uninstall_app which has the same problem.