Early assertions in resolver.

Change-Id: I32838912087c58fbfd8bc24f78e222067b9679c9