http htsp: fix status handling. Race condition caused NULL ptr exception. Fixes #1898.