Fixes tests in Host Runtime
   * also avoids potential  (but very unlikely) NullPointerException in ProcessManagerContext which caused test problems in the first place