Creating User Profiles using author.php

get_the_author_meta( 'ID' ) gets the ID of the author of the current post. If there’s no post there’s no author.

Use get_queried_object_id() instead. When used on author archives (i.e. author.php) it will be the ID of the author, regardless of whether or not they have posts.