Ensure that supplied headers is a dictionary