Non-existent sessions should be unlinked rather than throwing an AttributeError