Fixed scenario where the controller would fail if the backend sends html