Move the NULL pointer check to the vfs_deleteopt() function. Discussed with: rodrigc MFC after: 3 days