Fixes #6032: Prevent rudder-inventory-ldap post installation script to o...

...utput errors during initial installation

Ticket: http://www.rudder-project.org/redmine/issues/6032

To be merged in 2.10