Only class published certificates as expired or expiring

Currently, draft certificates show up in the 'My Certificates' page as 'expired' or 'expiring'. Whilst this is true, it means users will always see warnings on their page, even though it may only be a draft certificate which is expired.
Extra empty line detected at body end.