Fix #627, now user cannot confirm selection without selecting at least one document