[portion of Gonçalo Neto's commit on master] Fixed bug where select components were not cleaning the selection even with defaultIfEmpty flag set to false.