Fix block with optional arguments for Ruby 1.8 (workaround)