"Oops! Something went wrong" while trying to open transaction details

I’m getting this error while trying to display specific transaction details, fe:

I bet it is related to my recent change which was adding 2 custom parameters to transaction via newrelic_add_custom_parameter() function. One is user_login and second is his REMOTE_ADDR.