extractCommandWaitEndpoint

Extracts the command wait endpoint from the message header.

Return

The wait endpoint if present, null otherwise.