fixed an error in ajax get more rows - added extra error check