Fixed fatal error for unknown macro

Fixes #1052