add_mount() is OK with unknow file type, but we have to initalize the variable to NULL not to pass garbage on error. (cherry picked from commit a0b1209c)