Fix to avoid NPE when a field don't have initializer and field.getString...

A NPE was produced when getStringInitializer() or getLiteralInitializer() was invoked on fields that don't have initializer.
The expected behaviour is that if the field don't have initializer null will be returned.