Fixed bug where server would crash when trying to find a nonexistent capsule