Handling bad links errors so the application doesn't crash.