Fixes two bugs: apparently .GET['rank'] throws an exception if 'rank' is not specified and null + 1 == 1 in js (who knew?\!).