Fixes #1187 - Protect against NPEs when validating rule builders