Estimating ecological resilience from poorly behaved time series