When the messages component is rendered initially with no messages, it renders as a <div
id="messages">, but when messages are required, a <ul id="messages"> is rendered instead.
This makes it difficult to perform an ajax update of messages.
The preferred output would retain the outer <div> tag and optionally render the <ul> within it.
(There may be similar output with the message component.)