Add null-check on serverclass in gamerules lookup.