fixed check for wrong implementation of toolbarItem interface