Fixed incorrect parsing of arguments when required arguments are not present.