Fix for issue #667

Fix for javascript errors when viewing a ticket