Adding isNull and isEmpty validation checks for ID field.

Fixes blackberry/BB10-Webworks-Packager#246