Every patent may be in the prescribed form and shall be granted for one invention only, but the specification may contain more than one claim; and it shall not be competent for any person in an action or other proceeding to take any objection to a patent on the ground that it has been granted for more than one invention.