Handle nonexistent profile event handlers (fixes segfault). Submitted by: ptran@pobox.com Reviewed by: Aaron Bannert