cgpath test: don't check path len before checking if it is null

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>