Fixed install errmsg when an uninstall command is missing

Closes #1658