Fixes #739 with a tweak to LookupBySlug#lookup method.