fixed check on statusbar plugin defined