Fix incorrect behavior when using content_tag with block.

ref #1430
The behavior of haml is correct, so I fixed only problem of slim and erb.

/cc @phobetron @padrino/core-members