Fix to handle invalid package type input parameter as an error