Prevent JavaScript TypeError when not using a hint