Currently onApplicationContextPrepared is only available if you also register an instance. We should allow also allow an action to be registered alone.

Comment From: philwebb

This was fixed in 1ae14362110360cc558bcd498fa67f70a35b8373 as part of #23326