GetIdElement must look for "ID" and "id". Fixes #4938