Fixed condition when to show back button in error template