The "Apply" button in the drop-down would always apply the
a modifier that was currently under the mouse cursor. If the modifiers
were collapsed, which meant that it would usually apply the modifier
just below the correct one (or even no modifier at all if the cursor
happened to be right inbetween the two modifier panels).
The fix makes sure that the right modifier name is passed to the
OBJECT_OT_modifier_apply operator, which prevents it from using
the mouse cursor to get the modifier.