Fix block rendering

If block not found in current template, search the parent, before moving to other template.