Bug 976032 - check for null callbacks, r=dhylands