Added test for clearing the selectize component and fixed an runtime
error