[#5783] Assertion on return value

- per @Ocramius