Fixed master to reject completed frameworks from re-registering.

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