Fix locator :hwnd

When creating an object using :hwnd as a locator the window is not found. For example

```
windows.text_field( :hwnd => some_valid_hwnd ).set "123"
```
fails. The composed method call control_hwnd is tried to be called with one parameter when it takes two.
What about this additional check for `:index` which existed before the changes?