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.
This is a neat trick I learned. I'm not sure where else this would be useful, but I'm sure there's somewhere.