[BZ-1022881] avoid to statically create a default RuleBaseConfiguration when not necessary
(cherry picked from commit 1481152aa363425f354e69f3a5d65dd6fef744b0)