Fix bug 1294278 better error message when user specifies an invalid appmanager type