Modifying device to account for API not existing on older versions of the OS
and for errors with missing properties.

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>