A note on Liouvillian first integrals and invariant algebraic curves