Reboot : Cleanup Phase 1

add null check to global actions
reoptimize toggle(pull keyguard checks out of toggle)
& move them to togglemanager -- only show toggle if !mKeyguard.isKeyguardLocked() or if mShowRebootOnLock

Change-Id: I73542a1e5405f9842303f5164529449c37c8aa57