fix bug 1044068 - Prevent 'Cannot call execute of null' errors

This is a working PR and should be treated as such.  Likely lots of conversation below.

Still to complete:

- [x] - A test to confirm my PR prevents the issue.
I don't see any test code that ensures the `last_mod` is future?