Clean up lockscreen shortcuts configuration code

Get rid of a lot of duplicated code.
Lockscreen shortcuts: avoid NPE if icon assignment failed for whatever reason.
Merge remote-tracking branch 'upstream/jb-ras-mr2.0' into jb-ras-mr2.0