Fixes FilteringDict key retrieval error and adds debug logging

Summary: I know debug logging doesn't work here; just getting this up for @usmanm to look at.

Reviewers: usmanm, marcua

Reviewed By: usmanm

Differential Revision: http://phabricator.locu.com/D5005