Fix bug causing filters on reports to not work

Previously the user related selections were using device id's associated
with users which caused some weird issues.
Merge pull request #9 from dimagi/device-log-missing-data

Fix bug causing filters on reports to not work