Merge "liblog: Harden log_id check." am: c280143d9b am: cafb1b7776
am: 3ecffa294f

Change-Id: I3512c541160a69f6b0702d3ba07aa9ccbb06cd1e