Fix a crash in the format checker, when the format string is the first missing argument.

When the loop to find the format string argument reached the right index, it stopped and continued with checking the string.
Tough it must first check, whether the argument is there.
Correctly handle -pedantic-errors.

Before it was treated identically to -pedantic.