Fix error in ntp if condition

Change-Id: I78dbbd46ce91e71d6e4e54ab832f2dbbdfb84100