Removed Unnecessary check for ScriptDefaultAction

The scriptdefaultaction will never be null so this check is not needed.