fix potential nullpointer
Merge pull request #659 from caskdata/feature/fix-nil-sshfile

fix potential nullpointer