Check for attr coords on the area's

This extra check is build in before looping through the area's because if it has an area without the attribute 'coords', then the code will break.