Assertion in Juce 5 that wasn't in 4

Hey Jules, thx for the update…

I actually took my solution from this post Easiest way to pop a dialog box with a ColourSelector? which is clearly out of date…