Check the gamerules pointer before using.