gmf.lt_realization_id can be NULL

Fixing more errors in master