Added SideOnly to the icon index get method
Added case for getFirstStackOfType for if the stack is null