Added code to handle potential null value for trial settings list
Added code to properly initialize trial level factor settings, and to provide value for TRIAL_INSTANCE factor

Code review : Chezka Arevalo