Fixing "TypeError: no implicit conversion of nil into String" while retrieving photofy_attribute_path