Upload form now checks if an object was submitted before creating datastream or accessing the image