Fixed NPE when slot has no attachment.