throw SystemException if the objectTypeID is invalid

If the objectTypeID is null, a PHP Fatal Error is thrown, because getObjectType() returns null. Instead of the fatal error, now a system exception is thrown with the (optional) stack trace. This is much nicer, especially for developers