MDL-46500 filepicker: prevent error when element does not exist