Fix svg renderer bug when searching for entityReference gives an error