Fix critical warning when focused selection get unavailable