fs: yaffs2: Add null pointer check before dereferencing inode