Issue 50853 - Fix NULL pointer deref in config setting
Description: Need to check if the config init function is defined for
the attribute before blindly calling it. This fixes a
regression from issue 48707.
relates: https://pagure.io/389-ds-base/issue/50853
Reviewed by: tbordaz & mhonek (Thanks!)