Fixed NPE when running MBeanSamplerTest