am c87775d8: Fixing rank migration code to handle null values correctly.

* commit 'c87775d8e63c7b5722c23ef95c782f574b847d73':
  Fixing rank migration code to handle null values correctly.