Fix wall transfer cap for slopes with angles beyond the first quadrant Closes #1335 See merge request !2579