This quote means even if something appears to be wrong or incorrect, it can still be beneficial in some way. In this example, a stopped clock is not working, so it is considered wrong. However, if the clock stopped at the right time, then the clock will be correct twice a day. This means that, even if something seems wrong, it might still have some purpose.