Fix nullable values (models + templates)

Hi,

this PR fix nullable block values in the models and templates.

thanks