Sanity check for no overzealous trimming

Previous version had a bug where it could create a YATG file in the future.
The file was consistent in that it had no data, but it is probably not what
was wanted.