Fix #8832 - Fixes a regression introduced in 3.0.19
in ActionPack due to empty hashes and arrays in 
params being replaced with nil.