Fix message lookup in HTTP API. (Hodgestar, sdehaan)