Fix a bug that would occur if the intent would be null (launched from the launcher)