fixes #21412 -- messages framework add_message should check request arg

problem were users calling messages.debug/info/* with a wrong argument
and getting the error "You cannot add messages without installing
MessageMiddleware"


https://code.djangoproject.com/ticket/21412