Use the correct argument as the format string

Fixes crashes from using a string that's not actually a format string, and may sometimes be `nil`.