Backport r1459599 onto 1.7.x:

* r1459599
   Bail out of earlier in case of error with limit data.
   Votes:
     +1: breser, philip, pburba



git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.7.x@1462332 13f79535-47bb-0310-9956-ffa450edef68