ref #7887 Catch potential preference initialization problem