Possible undefined error in getFormMsgSubject

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1708 from emanuele45/fix

Possible undefined error in getFormMsgSubject