bug-909372 [gallery] Improve view activity saving robustness r=johnhu

if the file extension provided to view activity does not match the file type, do not enable save. As a result save button is not shown, when file name has wrong extension.