Moved framework id validation from scheduler driver to master.

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