Fix potential segfault in msg_dequeue

Change-Id: I06e9c5ba3e00c73a4e52d2583ce3492f236275ce
1 file changed