returned an empty rectangle if no valid DOM element in rect()