[added to the 4.1 stable tree] clk: fix a panic error caused by accessing NULL pointer