fix 500s when caller of json API names an app which doesn't exist