validate_survival_model function

Tests that a custom survival object has the required attributes for use in the prevalence function.