Detect format string errors when instancing errors

Fixes bug 732530