Avoid NPE for beans which were created via factory bean

If the definition's class name is not availabe due to using a factory bean then a NullPointerException is avoided by this request.