f2fs: add NULL pointer check