SAK-25363
SAK-25377

Fix check to string length



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