MDL-40318 quiz intro comprising just an impage was not shown

Also, ensure that we don't output an empty box if there are no access
messages.