bug in window_find_by_id

Looking at the assembly it seems there is an inconsistency in the code.