Pass in pointer instead of reference to match Mozilla style guide.
Build fix. Also, add DebugOnly to return value used only for assertion.