Fixed recursively calling blocks in templates with inheritance

Fixes KnpLabs/KnpMenu#136 and KnpLabs/KnpMenu#119