RepositionWindows now ignores invalid window handles.

Previously invalid window handles resulted in an infinite loop.