domain: don't crash on "throw null"

Signed-off-by: Trevor Norris <trev.norris@gmail.com>