Changed wfMsg to wfMessage, check whether $tilte is defined.

Change-Id: I0a87eb9a98ceba0c376e3972333ce6d2e53795a4