Fix error handling in server rendering.
Remove unused constant.