make sure empty object can be serialize via to_pem

this is mainly to match the specs/tests for the edge case that
the CRL or PKCS10Request are empty object (created with new and without
data)

fixes #21

Sponsored by Lookout Inc.