Fix PauliStrings when openfermion has constant term
Created by: jwnys
Small bug fix: when openfermion has a constant term, the conversion failed at counting the number of fermions. Will also need this function for the fermion2nd implementation, for example. Added a test with a constant term.