No lien provided for in this part binds any sawlogs, piling, railroad ties, cordwood, or other timber or lumber and shingles for a longer period than 8 calendar months after the claim as herein provided has been filed, unless a civil action be commenced in a proper court within that time to enforce the same. However, in case such civil action so commenced should for any cause, other than the merits, be dismissed, then the lien shall continue for the term of 1 calendar month, if the 8 months have expired to permit the commencement of another action thereon, which shall be as effective in prolonging the lien as if it had been entered during the term of 8 months hereinbefore stated.
§ 71-3-604, MCA