verifies if the datapicker container has an input element, otherwise will fall back to the datepicker element itself
Merge branch 'master' into development
jslint fix