Fix IllegalArgumentException when scope is a String instead of a collect...

When the value under the scope attribute in the incoming map was a String instead of a Collection it was failing with an IllegalArgumentException even when it is clear from the message that String and Collection are acceptable values. Bug is due to missing return statement which is now fixed.