Failing to upgrade from 3.1.1-4 to any version above due to null values

Well, I apply this solution and it works. Thanks.