if type:invisible and position >=0 Identify fails

Tried to add error catching and console logging if the two conditions for a widget occur.