Fixes issues with elements with id attributes not set.