Fix bug in executing applications written with the System.Net.Http adapter.