In an action brought by the mother of a child born out of wedlock in her own right or in her capacity as guardian, executor, or administrator for damages for the child's injury or death, the mother shall not be discriminated against because of her child's having been born out of wedlock.