Shell avoids loss with strong trading, wipes $17 billion off assets