StatusCode check fixes, master branch (2017.10.26.)
See merge request !463 (merged)
(cherry picked from commit c644c564)
66c2f0e0 Added two missing StatusCode return value checks to the code, to remove feb917e4 Applied the formatting that clang-format prefers. f2e9b1ab Tried to update the code in accordance with the conclusions in the bda3069a Applied the formatting proposed by the CI system. (Still getting used to the