Fixed `DatabaseError: integer out of range` generated on `sitetree_resync_apps` (see #105).