[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'.
Merge pull request #733 from glogiotatidis/997891

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