OF-818 Move isEmpty() check before filtering for highest prio sessions