[PATCH 1/3] message-waiting: check for NULL argument