[BUG] Restore memory frames only on fatal errors

Otherwise trigger_error() + PHALCON_MM_RESTORE() may lead to a crash.

Possibly fixes #911