Input: Cleanup, assert device id lookup in range