Some Item Cube null fixes.
Fixed the accidental deletion of ID setting for Item Cubes. Added a
function to get the ID of the viewing item cube.