Fix for pundit policy scope record lookup.