Fixes: Return MSIDBSTATE_ERROR when MsiGetDatabaseState is called from a custom action