Prevent error when referencing an issue without project (#7890).
Authored by: jplang 2011-03-16
Parent: [r5156]
Child: [r5158]