Please move this check to the caller.

Today we have this notion of only one running application, but in the future we might have multiple and this check will need to change, but RegisterExtensions should remain unchanged.