[rendermanager] fix possible null ptr dereference in CXBMCRenderManager::GetOptimalBufferSize()

Fixes coverity CID 1243594