Hotfix: inserting additional validation before trying to access elements which might not be there if a browser doesn't support <input type="color"> HTML element