fix for issue #1834

This fixes the issue in fix for issue #1834. handle NULL pointer return value from r_bin_java_read_next_attr_from_buffer(). This is my first pull request, let me know if anything should be changed.