fixes #3819 selected=false is treated as selected make selected=null to
deselect