Fixed bug which causes a NPE when trying to use /mcrefresh from the console