Make LoadFromString not panic but return an error instead.

Change-Id: I9f52fe807c8e9771a530f90ede8bd46fcdb467ae