Check if selection has a fill or a border before trying to get the color

This fixes an issue where the plugin fails to work for objects without a border.

You should probably do a bit of error checking, as the plugin currently tries to run with objects without a fill.