Fix NullPointerException while getting monitor data