Template was comparing to :undefined

Change-Id: Id6f502dcaa09e7be86863fcbe007f20d644280b4