Another fix for when the SMW store is 'SMWSparqlStore'

Change-Id: Ib92c043ac7322de2b3f378f7ca35c8659b6f4d17