Guard against a null list

Neil, can you verify that I'm making the right fix here?  This is something we've observed causing an exception fairly often on our site's Hoogle.  Thanks!