Fixed hardware index getting, added checking/exception for invalid index
Fixed hardware index getting, added checking/exception for invalid index

cbeck88/cegui-mirror-two,cbeck88/cegui-mirror-two,cbeck88/cegui-mirror-two,cbeck88/cegui-mirror-two,cbeck88/cegui-mirror-two