Erro if no predecessor exists in XML

If no tag exists for a task, error happens. This tag should be optional.