Fix error: undefined method existent for nil:NilClass

Add rescue to fix error