Display settings: fix a nullpointer