Restrict ItemByTitleHelper site/title combinations

This restricts the ItemByTitleHelper to only allowing
1 Site and multiple titles or and euqal number of
sites and titles. This will stop the div0 error and
also will limit the crazy combinations that can be
used such as 4 sites and 9 titles..

Also change the for loop into 2 foreach loops which
are much easier to read and follow

Removes GPL headers

Bug: 53037
Change-Id: Ib04b5dd57f2e96d21e7a0af47a18be0a365d097f
Merge "Restrict ItemByTitleHelper site/title combinations"