Fixed flaky FaultToleranceTest.ReregisterFrameworkExitedExecutor test.

Review: https://reviews.apache.org/r/14762
Fixed weights parsing in the master to properly account for roles.

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