Fix failing creation of MagnumException subclasses

Change-Id: I8100c59a5608da2703860da0ba3e6628971af5f1