fixed a NullPointer when getting the bean instance in 7.4.2