Prevent the usage of strlen() on null values.