Fix mdadm resync information

As mentioned from in Issue #24, the mdadm check stays on failed disk, even if it's resyncing or resync delayed.

I changed the order in the if statement which fixes this issue.