Better is_null check in Contact Us js

This will make it not break other pages

See #731, #846