ensure that captured blocks in erb and slim templates return nil, fixes #1582
Merge pull request #1588 from minad/1582

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