qtclient: don segfault when ui/data load modes are illegal