fix javascript error when click on 'Show Expires' and token is not activ...

...e