Cloudinary Error (1.3.1) (Both in Companion and APK mode)

I am receiving the following error if I put any element in the “when Media.Uploaded” method.

You can see the when Media.Uploaded blocks in the background. If I remove the set button to true method, I do not get an error. (Android 7.0)

Some of the adb logcats that might be relevant.

01-20 13:15:54.998 17150 17728 W art : Class org.cloudinary.json.JSONArray failed lock verification and will run slower.
01-20 13:15:55.032 17150 17728 W System.err: at com.google.appinventor.components.runtime.MakeroidCloudinary.MediaUploaded(SourceFile:150)
01-20 13:15:55.032 17150 17728 W System.err: at com.google.appinventor.components.runtime.MakeroidCloudinary.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME(SourceFile:1145)
01-20 13:15:55.032 17150 17728 W System.err: at com.google.appinventor.components.runtime.MakeroidCloudinary$1.run(SourceFile:98)
01-20 13:15:55.043 17150 17728 E Cloudinary: Can’t create handler inside thread that has not called Looper.prepare()
01-20 13:15:55.044 17150 17150 E Form : Form Screen1 ErrorOccurred, errorNumber = 1104, componentType = MakeroidCloudinary, functionName = UploadMedia, messages = ERROR