cppcheck: Redundant checking of STL container

Change-Id: I83a8671e90431bbc4f41392f062d37c452b018ff