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