Change GetService call to GetRequiredService

Remove the assertion that the returned service is not null, since the
GetRequiredService extension method will throw instead of ever
returning null.