regulator: Fix possible nullpointer dereference in regulator_enable()