A David Stockdale howler proved costly for Fulham as they continued their worrying slump in a 2-1 defeat by Swansea City.