Adds some protection if a 'main' element isn't provided