Fix undefined MWException from global scope

Change-Id: I3de9b03cd4deac3f52f40e7796528ce203c85cf1
Merge "Fix undefined MWException from global scope"