Fix the selection binding when data is nil.