Ignore empty lines, print useful info on failure.

Change-Id: I9418ee223414ada1013691c007e66501078e78c2