Unclear Error when performing bulk action of Manage Repository Set against Hosts without Content registration
Description of problem:
When trying to perform bulk action "Manage Repository Sets" on Content Hosts, if a Content Host has never registered, it will fail and return an undefined method error:
NoMethodError: undefined method `uuid' for nil:NilClass
Version-Release number of selected component (if applicable):
Red Hat Satellite 6.3.1
How reproducible: Easily, always?
Steps to Reproduce:
1. Create a Host: WebUI-> Hosts -> All Hosts -> Create Host - But do not actually build one yet or register that host.
2. Go to WebUI -> Content Hosts and select a number of hosts, including the one just created (which should show as "Never registered" and "Never checked in"
3. Select "Select Action" -> "Manage Repository Sets" and choose a Repository set and either "Override to Enabled" or "Override to disabled"
The task "Update Contennt Overrides to <content-host>" will fail with an error simply saying "undefined method `uuid' for nil:NilClass"
The task should still fail, or give a warning, more gracefully with an explanation of the failure rather than the undefined method error.