fixed removal of existing tabs element when tabs_class option contains spaces