SAK-23781 EntityBroker findId should only trim extension if it is is valid
Patch from Matt Jones (Longsight)

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