Resolve 2 NullPointerExceptions that happen when attempting to get the mass of a molecule with a pseudo atom.

Signed-off-by: John May <john.wilkinsonmay@gmail.com>
Formatting the formula module (mvn java-formatter:format).