Bug 951993 - Fix undefined mMode when called from file input in HTML form. r=baku