This looks like a bug.
Would you mind filing in bug-tracker? Looks like something that should be fixed for 5.0.1.
/Lars