Handle empty session exception.