Better error messages when a function is missing in a design document Closes COUCHDB-1109. Patch by Thomas Vander Stichele, thanks.