Fix NullPointerException relating to MoTD selection.