Fix ErrorDocument support so that it works with Apache < 2.4.