Fix hardfault when attaching callback to CAN2 when CAN1 is not defined

Fault is triggered by trying to read LPC_CAN1->IER when the peripheral is powered off. Fixed by checking the power control register before checking the IER register.
Merge pull request #63 from jorisa/master

Fix hardfault when attaching callback to CAN2 when CAN1 is not defined