Coverity fixes

A few issues identified by coverity.
On line 228 we call a function on m_World regardless of whether this null check succeeds.