fix bug when template is null in R2RMLParser