SAK-27902 - NPE check to fix unit tests


git-svn-id: https://source.sakaiproject.org/svn/entitybroker/trunk@314817 66ffb92e-73f9-0310-93c1-f5514f145a0a
SAK-27818 - Predictable order for findURLRedirectMethods to fix unit test


git-svn-id: https://source.sakaiproject.org/svn/entitybroker/trunk@314818 66ffb92e-73f9-0310-93c1-f5514f145a0a