Commit bbb60ca removed this check because it can't support the user requesting noext. But if the user didn't specify ext or noext, using the default mode should be fine. So this patch restores the check if the second argument is empty.