Adds error-handling for the poem page when an invalid id is passed.