Fixes #305. JRuby fails to parse a block under certain circumstances.