Fixed wire tool erroring when clicking entity with no inputs

Fixed wire tool erroring when clicking an entity with outputs, but no
inputs, at stage 0.