It feels like the movie balanced these two concepts quite well. It was still a funny movie without skimping on the superhero action. This particular joke, happens quite quickly and while it may not have worked under other circumstances, the fact that it's a brief gag in a larger action sequence means you don't dwell on it too much. It might actually be a bit silly, but you only notice that in reflection, because the movie doesn't let you think about it too long.