Fixes the exceptions being raised by localrng qc

Part of OOIION-1319
Merge pull request #1348 from lukecampbell/loclrng-fix

Fixes the exceptions being raised by localrng qc