Added Null Pointer Check in TranslationServiceImpl.java

Added Null check before getting the object value and type casting it to translation object