Fix removing of SplitButton through the API. Close #401