Since it’s fixed in 5.1, I guess it’s not a big deal anymore, but I wander if as a workaround you could initially set the background from js by
$('#page').attr('style', '...');
and then read it from there…
kinda stupid and pain in the ass, yeah.