Fixes issue #62 "Sending debug email fails with call to undefined method", fixed fatal error on call to removed layout method