Fixed MESOS-870: The slave's http endpoint can crash the slave.

Review: https://reviews.apache.org/r/16072