InsertFile: Fix for JS error when no file selected

When no file was selected a js error occured due to not initialized fields

Change-Id: If935bfd772e2ddf371d1953b06d8cc9025fff5a9
Merge "InsertFile: Fix for JS error when no file selected"