Fixes #4946
 * Set idaction_name to 0 instead of NULL. This should fix the error of requests not recorded.
 * Only set the custom variables if it's not already set. Tests show it breaks log replay of ecommerce logs (which use custom variable slots)
Merge remote-tracking branch 'origin/master'