Fix a core dump when an illegal option is passed to pkg
Fix a core dump when an illegal option is passed to pkg

en90/pkg,Open343/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,skoef/pkg,en90/pkg,junovitch/pkg,khorben/pkg,skoef/pkg,Open343/pkg