(bug 46615) updateCollation.php: sanity check the collation before proceeding

Change-Id: I5be1b1ec1823fdb7438c3f501fb6194142c1e9dc
Merge "(bug 46615) updateCollation.php: sanity check the collation before proceeding"