NPE during db restore was fixed.
Merge remote-tracking branch 'origin/1.7.4' into 1.7.4