Fixes exceptions being raised by localrng qc

Part of OOIION-1319
Merge pull request #1349 from lukecampbell/loclrng-r2

Fixes Exceptions being raised by LOCALRNG QC