License isn't always needed, fixes access violation

Sometimes license doesn't seem to be needed. If license address is a null pointer, skip reading from it.