[permissions] Query Report: don't use a doctype for filtering User Permissions, if the column representing this doctype is empty
Merge pull request #836 from anandpdoshi/anand-september-10

[permissions] Query Report: don't use a doctype for filtering User Permissions, if the column representing this doctype is empty