add missing null check to shouldBackup method
Merge pull request #3947 from ahmetmircik/fix/3.4/shouldBackupNullCheck

Adds missing null checks to shouldBackup methods