Check for existence of attributes.

Currently if a shortcode has no attributes it causes an error.