[bug 997891] Use failsafe format() to format subject.

Because 'instance' is not yet saved in the db, bug_id is still
unicode and python cannot convert it using '%d'.