977748 - fixed permission and empty installed products

977748 - use .nil?