Remove unnecessary error messages and throw exception if function not set
Merge branch 'master' of https://github.com/dibyendumajumdar/nlopt4j