Prevent call to dStrlen(NULL)

Not sure why this wasn't caught before, but it was causing a crash for me during unit tests, but only with the minimal main script I introduced [here](https://github.com/eightyeight/Torque3D/commit/4fa16b2bc0f91c8d8eb3560217d7769651096001). Needed for #626.