Fixed master to ignore messages from unregistered framework.

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