Do not assume mScheme is not null

Fixes crashes with ENABLE_MODELTEST set at build time on opening
options editor