Fixes ENYO-381

## Issue
DatePicker and TimePicker check for existence of ilib but the variable is undefined if ilib has not been included

## Fix
Properly scope existence check for ilib

Enyo-DCO-1.1-Signed-off-by: Ryan Duffy (ryan.duffy@lge.com)