Watch out for null image object when recording history.
It appears that this was intentional and meant to denote a case where the disk was not loaded. In Kevin's original code he set the imageid to zero in this case. So we do the same (along with version=0).
Showing with 6 additions and 2 deletions