drivers: clk: Handle gracefully NULL pointers