CFile: fix null pointer dereference in Stat() and Write()
[vfs] CFile: add null pointers checks
Merge pull request #3534 from Karlson2k/cfile_fix_01

CFile: fix null pointer dereference