Fix NPE parsing mobileview JSON

Only explanation for a NPE is that json.optJSONObject("protection") is null.

Bug: 67807
Change-Id: I0d8a4cef506dfcb7fe2aa661e751bd98ec829eb8
Fix NPE from editing.EditHandler.onMessage

If fragment is not added then we don't want to do those actions.

Bug: 68171
Change-Id: If322d0408d02279b58b64cebcea2ce89b0c40e54
Merge "Fix NPE parsing mobileview JSON"