gweb: Use g_try_realloc instead of g_realloc