Added filter to get custom_404 option working.