fix selectItemAtIndex crash during edit mode, when tapping on an empty area