Check for null/undefined input to orderByPriority filter, fixes #206