Fixing 1.3-1.4 upgrade bug with old data

--HG--
extra : source : e96d88ca0688d20b2783a702642116123a2c810d
Merge pull request #432 from einhverfr/master

Fixing 1.3-1.4 upgrade bug with old data