Removed loading state from paging if error occurs in ajax