Fixed stream file handling in AgaviUploadedFile

added missing brackets in if statement