fixed typo
prevent interpreter crash when None given instead of Rigidbody object