Added missing return when ruletype can't be found

In attachment plugin, when requesting a rule type that can't be found.
The error show in the logs but the method doesn't return, causing an exception when trying to access self.rules[ruletype] in following test.