Do not do RTL_LOG_STRING_NEW on null pointer

Change-Id: Ie972599650620324fa7af5ed2b2843bfc1f34c43