Prevent crash if config has been garbage collected.
Update to android gradle 0.12