Issue with 'after_menu' argument in 'addons'

Similar to #2335

The 'after_menu' argument is being outputted after the loop (In multiple
mode) while the 'before_menu' is being outputted in the loop. This means
if you have multiple addons and these arguments set then you
will output more "befores" than "afters".

This change fixes the issue.