Dynamics of defect-induced dark solitons in an exciton-polariton condensate