Core/messages: Empty results from message parsing were breaking CUT. Now raise an error.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit 9f57ec9067ffa41bd8da8bdf529660eff642fdef)