check for null device token