Fixed class loading problem when service registry is not available (like on Android)