file upload : check if getvalue attribute exists before calling it

related to https://dev.sourcefabric.org/browse/LBSD-283