Only call wfLoadExtensionMessages if defined

Bug: 68980
Change-Id: I293d15f35d69c5157222857154cca8050af87fef