Add try catch to style detecting code
Add try catch to style detecting code

Sometimes the contrast check function is getting called with null as the
passed element. Unsure why this happens, this commit adds a bit of debug in
an attempt to catch this.

DmitriK/darkContrast,DmitriK/darkContrast,DmitriK/darkContrast