Fix #8297. Select all when expression is blank