Array index out of bound exception handled for url split query