Fixed null object property

If I'll try to use some property on null-object in template, I'll get error like "Cannot read property of null".