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.