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