Add check to invoke result of http streaming in main thread if running in UI context

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>