[BUGFIX] Ensure global assets array exists

Should fix #243.