console: fixed NPE on export database command when options are not
specified