Fixed a bug in the slave to only send UnregisteredSlave message
when it is connected to a master and is registered.

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

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1456069 13f79535-47bb-0310-9956-ffa450edef68