Added safety check in case Content-Type or Status is null.