Do not pass bad pointers to strlen

...neither a pointer to a lone char nor null

Change-Id: I08a4f6b80310e23edd614490633b677bd50323a4