If mode is empty, set a default

Ticket: #3305