Small fixes for working doclib web script on 4.1.4 test environment