Issue #1169034 by mfb: fix notice in file_create_filename() for cases when the ext variable did not exist previously