mesh: fix null ptr access
mesh: fix null ptr access

X-Original-Commit: 88023f0413ef535a0e0326410a5309ecec9720d7

apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble