added check for message.data is defined in catch e in order to prevent opifex crashing
0.3.1