Fixed program crash when strcmp to a NULL-pointer.