Fixes the exceptions being raised by localrng qc

Part of [OOIION-1319](https://jira.oceanobservatories.org/tasks/browse/OOIION-1319)

@jamie-cyber1 Please review

Note: REL2.0 pull request will be available shortly