Replace deprecated wfMsg and wfEmptyMsg functions.

Replaced the deprecated wfMsg and wfEmptyMsg functions with wfMessage.