Fix record view [MJA-5066]

Updated record datetime filtering so it covers whole time range, and logs a new relic error when it can't find the requested record in the subquery rather than erroring out entirely [MJA-5066]

All tests pass.