[PATCH v2 RESEND] EDAC/altera: Fix possible null pointer dereference