Checked if intent is null so regular camera works