Fixed issue when package is not installed.

Error was getting thrown if package is not installed. Handled is nicely ;)