Fix osc_run_hook('pre_user_post') called when error

This hook must/should not be called when no user's gonna be registered