Guard against possible NPEs when getting mojo configuration values