[BUGFIX] Handle file_references properly in t3lib_befunc::thumbCode