Bug 800220 - Part 1. Replace PL_strlen with strlen. r=ehsan
Bug 800220 - Part 2. Fix warning error. r=ehsan
Bug 800220 - Part 3. Add null check to avoid strlen(nullptr). r=ehsan