fix details.jsp

- catch invalid id