ensure that captured blocks in erb and slim templates return nil, fixes #1582

* https://github.com/padrino/padrino-framework/pull/1582
* https://github.com/padrino/padrino-framework/pull/1585