Fixes bug with checking length of sid access arg

Fixes: bug 1262219
Change-Id: I39a8c1a4f6cd4e6a0e03a5e731dc7f724de75b82
Merge "Fixes bug with checking length of sid access arg"