#93 Remove updateDimensions method- it was only ever ending on first line anyway because layers don't contain a metadata property anymore. Even if they did the code would always have thrown errors, so it's evidently never been used.  Add check in StylePanel for existence of allStyles property before checking length- custom wms don't have allstyles.  Also merge two other if statements into one to make it clearer what's happening.