Update gradle plugin, catch NPE caused by some motorola devices when set...

See here:
http://crashes.to/s/fc98d72b258

I have also other frequent crashes but I didn't know if it is reasonable to just catch them:

http://crashes.to/s/fb4d70677fa
http://crashes.to/s/f59060e3374

I would appreciate it very much if you took a look at it :)