Correctly set module ID on exception messages.