Update slotrefs of equipment correctly

When equiping a slot with a new equipment, the backpointer to the slot wasn't resetted.
Also, when just removing equipment by passing nullptr, set...Slot was called anyway which would have led to segfaults.

Both fixed ;)