bug fix for package uninstall

adds array check for attribute uninstall where no search attribute key
is present.