977748 - fixed permission and empty installed products

977748 - use .nil?
Merge pull request #2720 from thomasmckay/977748

977748 - fixed permission and empty installed products