Fixed potential bug where the scope of a bean requested from the application context is not a singleton (Supports RAVE-121)