Fixes #4133, Empty personal note on OC leads to 'null' as text

- gc_code was affected as well, using now 'hasNonNull' instead of 'has' in the relevant places