file upload : check if getvalue attribute exists before calling it

related to https://dev.sourcefabric.org/browse/LBSD-283
If not available the length here we have to read the length from stored media (see below id = app.media.put(out, ...).