Handle an extension registry with no extensions

Emit correct code for an extension registry class that has no defined extensions.

@JakeWharton