Fixed crash when looping over slots that didn't have an attachment.