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.