add logic to prevent attempting to locate one day view at a date outside available data

This fixes the spurious small dataset "bug".

See discussion in tideline [issue #17](https://github.com/tidepool-org/tideline/issues/17).