mam.lib: fix traceback caused by clients sending empty <body /> el. (Fixes #183)