It Happen when you close the Render Globals Window.
Its a bug in the Maya Mel Files.
To fix it just change those lines in this file:
/scripts/others/createMayaSoftwareCommonGlobalsTab.mel
1557
string $maskCommand = "cameraMaskChange(\""+$chkbox+"\", \""+$camera+"\", \"mask\")";
1565
string $depthCommand = "cameraMaskChange(\""+$chkbox+"\", \""+$camera+"\", \"depth\")";