added error message for when using an object in a rule that hasn't been
assigned a layer