Comment parsing: actually check for a block command after "\param x"

This fixes PR15068.