Don't insert entries with trailing slash
am: 759a9b745a

Change-Id: I76a7fb4880e9a56b906dfc566ebb16f7d5aed7ff