Set the previous signal handler to nil if it is not a proc