Added temporary fix for empty selection crash on some GPU drivers.