LPS-31785 Fix annotation removing comma after last listener

This was causing the JavadocFormatter to crash. I'll inform Roberto.