Clicking 'Clock Out' more than once gives 404 error

This happens because there is no active entry to clock out, so the code raises a 404. Since most users will only come across this issue after clicking on the 'Clock Out' button more than once, it would be better user experience to redirect the user to the dashboard.