I think we need this check when the custom signal is specified, otherwise we'll be unable to stop a container with a bad custom signal specified.