PDI-10957 - fix and unit tests

unit test checks that all @JobEntry and @Step annotated classes are localizable.

along with basic fix there is small fix of NPE which was introduced just recently (regression)