fixed redirect if block doesnt exist

The diff should explain it.