Support for null or invalid foreign keys on revision items. Fixes #11