diff --git a/public_html/registrations.js b/public_html/registrations.js
index fc1102d..1fab589 100644
--- a/public_html/registrations.js
+++ b/public_html/registrations.js
@@ -107,6 +107,9 @@ registration_from_hexid = (function () {
function lookup(hexid) {
var hexid = +("0x" + hexid);
+ if (isNaN(hexid)) {
+ return null;
+ }
reg = n_reg(hexid);
if (reg)