MINE-329: move check for 'totalHits' parameter and conversion to an int to the if condition checking for the parameter 'allChecked'. This is the only place it's needed. The 'totalHits' parameter is not passed when creating lists not initiated from the keywordSearch page and caused a NullPointerException.